package com.voice.call.job;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.voice.call.service.NewsService;

@Component
public class AsyncNewsDataJob {
	
	private static final Logger log = LoggerFactory.getLogger(AsyncNewsDataJob.class);
	
	@Resource
	private NewsService newsService;

	public void execute() {
		
		log.info("新闻同步定时任务开始...");
		newsService.asyncEveryNewsList();
		log.info("新闻同步定时定时任务结束...");
	}
}
